import {createThunkAction} from "../../lib/redux-utils";
import {get, postJson} from "../../lib/http";

const path = "/orderAnalysis";
const ACTION_PREFIX = "LINE_PRICE.";

export const clientPriceQuery = createThunkAction(ACTION_PREFIX + "QUERY_CLIENT_PRICE", params => postJson(path + "/clientPriceCount", params));
export const carrierPriceQuery = createThunkAction(ACTION_PREFIX + "QUERY_CARRIER_PRICE", params => postJson(path + "/carrierPriceCount", params));
export const getCarrierList = createThunkAction(ACTION_PREFIX + "GET_CARRIER", () => get("/carrier/all"));
export const getClientList = createThunkAction(ACTION_PREFIX + "GET_CLIENT", () => get("/client/all"));





